//
//  TMBuyGoodsCell.h
//  国学商家管理
//
//  Created by Tao Li on 2018/7/6.
//  Copyright © 2018年 mac. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef void(^UseDiscountBlock)(void);
typedef void(^PayBlock)(void);
typedef void(^CancelBlock)(void);
@class TMMyCartModel;
@interface TMBuyGoodsCell : UITableViewCell
@property (nonatomic, copy) UseDiscountBlock disBlock;
@property (nonatomic, copy) PayBlock payBlock;
@property (nonatomic, copy) CancelBlock cancelBlock;
@property (weak, nonatomic) IBOutlet UILabel *courseName;
@property (weak, nonatomic) IBOutlet UIImageView *courseImage;
@property (weak, nonatomic) IBOutlet UILabel *courseDeatilLabel;
@property (weak, nonatomic) IBOutlet UILabel *beforePrice;
@property (weak, nonatomic) IBOutlet UILabel *nowPrice;
@property (weak, nonatomic) IBOutlet UIView *lineView;
@property (weak, nonatomic) IBOutlet UILabel *discountLabel;
@property (weak, nonatomic) IBOutlet UIButton *canUseBtn;
@property (weak, nonatomic) IBOutlet UIImageView *canUseImage;
@property (weak, nonatomic) IBOutlet UIView *backView;

@property (weak, nonatomic) IBOutlet UILabel *totalLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *noDiscountCount;
@property (nonatomic, assign) BOOL hasDiscount;
@property (weak, nonatomic) IBOutlet UIView *useDiscountView;
@property (weak, nonatomic) IBOutlet UIView *linview;
@property (weak, nonatomic) IBOutlet UILabel *beforeMoneys;
@property (nonatomic, strong) TMMyCartModel *orderModel;
@end
